<template>
  <div v-if="store.getters.roles[0]==='student'">学生课程查看界面</div>
</template>

<script>
import store from "@/store";

export default {
  computed: {
    store() {
      return store
    }
  },
  //变量区
  data(){
    return{

    }
  },
  //页面加载时运行
  mounted(){
    //权限需为学生
    if(store.getters.roles[0]==='student'){

    }else{//否则跳转错误页面
      this.$router.push({path:"/404"});
    }
  },
  //函数区
  methods:{



  },
  //组件区
  components: {

  },
}
</script>
